package com.lark.web.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.lark.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lark.common.utils.log.annotation.FieldRemark;
import com.lark.common.utils.log.annotation.LogField;
import com.lark.common.annotation.Excel;

/**
 * 容器对象 container
 * @author fei
 * @email 952597665@qq.com
 * @date 2024-08-13
 */
@Data
public class Container extends BaseEntity<Container>
{
    private static final long serialVersionUID = 1L;

    /** 容器ID */
    @Excel(name = "容器ID")
    @LogField
    @FieldRemark(name = "容器ID",field = "containerId")
    private String containerId;

    /** 容器名称 */
    @Excel(name = "容器名称")
    @LogField
    @FieldRemark(name = "容器名称",field = "containerName")
    private String containerName;

    /** 镜像 */
    @Excel(name = "镜像")
    @LogField
    @FieldRemark(name = "镜像",field = "image")
    private String image;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @LogField
    @FieldRemark(name = "创建时间",field = "containerCreateTime")
    private Date containerCreateTime;

    /** 创建时间开始 */
    private String beginContainerCreateTime;

    /** 创建时间结束 */
    private String endContainerCreateTime;
	
    /** 命令 */
    @Excel(name = "命令")
    @LogField
    @FieldRemark(name = "命令",field = "command")
    private String command;

    /** 状态 */
    @Excel(name = "状态", dictType = "sys_normal_disable")
    @LogField
    @FieldRemark(name = "状态",field = "status")
    private String status;

    /**
     * 请求参数
     */
    private String ip;

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getIp() {
        return ip;
    }

    public void setContainerId(String containerId)
    {
        this.containerId = containerId;
    }

    public String getContainerId() 
    {
        return containerId;
    }

    public void setContainerName(String containerName) 
    {
        this.containerName = containerName;
    }

    public String getContainerName() 
    {
        return containerName;
    }

    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }

    public void setContainerCreateTime(Date containerCreateTime) 
    {
        this.containerCreateTime = containerCreateTime;
    }

    public Date getContainerCreateTime() 
    {
        return containerCreateTime;
    }

    public void setCommand(String command) 
    {
        this.command = command;
    }

    public String getCommand() 
    {
        return command;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("containerId", getContainerId())
            .append("containerName", getContainerName())
            .append("image", getImage())
            .append("containerCreateTime", getContainerCreateTime())
            .append("command", getCommand())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createDept", getCreateDept())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("updateIp", getUpdateIp())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
